package com.qq.spirit;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.qq.spirit.model.UserData;

public class UserCache
{
	public static Map<String, UserData> userQueue = new HashMap<String, UserData>();

	public static void addToQueue(String username, UserData udata)
	{
		userQueue.put(username, udata);
	}

	public static UserData get(String username)
	{
		return userQueue.get(username);
	}

	public static String getGameName(String username)
	{
		if (userQueue.containsKey(username))
		{
			return userQueue.get(username).getGamename();
		}
		return "";
	}
}
